<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/Public/em-ui/index.css">
</head>
<STYLE>
    body {
        width: 740px;
        margin: auto;
    }

    .kong1 {
        height: 20px;
    }
    .imgsid{
        width: 25px;
        height: 25px;
    }
</STYLE>
<body>

<div id="app">
    
    <?php $id =session("role_id") ?>
    <?php if($id==1){ ?>
        <ul class="el-menu el-menu--horizontal el-menu--dark">
            <a href="<?php echo U('/Admin/main');?>"><li class="el-menu-item">主页</li></a>
            <a href="<?php echo U('/Admin/shop');?>"><li class="el-menu-item">商品管理</li></a>
            <a href="<?php echo U('/Admin/Bike');?>"><li class="el-menu-item">订单管理</li></a>
            <a href="<?php echo U('/Admin/Emtpy/index');?>"><li class="el-menu-item">退出登录</li></a>
        </ul>
    <?php }else if($id==2 || $id==3){ ?>
    <ul class="el-menu el-menu--horizontal el-menu--dark">
        <a href="<?php echo U('/Admin/Bike');?>"><li class="el-menu-item">主页</li></a>
        <a href="<?php echo U('/Admin/Bike');?>"><li class="el-menu-item">订单管理</li></a>
        <a href="<?php echo U('/Admin/Emtpy/index');?>"><li class="el-menu-item">退出登录</li></a>
    </ul>
    <?php } ?>


    <div class="kong1"></div>
    <div class="panel panel-primary">
        <div class="panel-heading">
            订单管理<a href="<?php echo U('/Admin/Bike/klio');?>">已发货订单</a><a href="<?php echo U('/Admin/Bike/wrf');?>">所有订单</a><!-- 头部-->
        </div>
        
    <table class="table">
        <tr>
            <th>收货人姓名</th>
            <th>收货人电话</th>
            <th>商品名称</th>
            <th>发货地址</th>
            <th>邮政编码</th>
            <th>付款时间</th>
            <th>状态</th>
            <th>&nbsp;</th>
        </tr>
        <!--<?php var_dump($name) ?>-->
        <?php if(is_array($name)): foreach($name as $key=>$names): ?><tr>
                    <td><?php echo ($names["names"]); ?></td>
                    <td><?php echo ($names["phones"]); ?></td>
                    <td><?php echo ($names["shopname"]); ?></td>
                    <td><?php echo ($names["address"]); ?></td>
                    <td><?php echo ($names["you"]); ?></td>
                    <td><?php echo ($names["f_time"]); ?></td>
                    <td><?php echo ($names["ad"]); ?></td>
                    <?php if($names['ad'] == "未发货"){ ?>
                        <td><a href="<?php echo U('/Admin/Bi');?>?id=<?php echo ($names["inpus"]); ?>">发货</a></td>
                    <?php } ?>
                </tr><?php endforeach; endif; ?>
    </table>
<!--身体 -->
    </div>
    <!--弹窗-->
    <!--弹窗-->
    <!--弹窗-->
    <!--弹窗-->

</div>

<script src="/Public/js/vue.min.js"></script>
<script src="/Public/js/vue-resource.min.js"></script>
<script src="/Public/em-ui/index.js"></script>
<script src="/Public/js/jquery-1.11.1.min.js"></script>
<script src="/Public/js/bootstrap.min.js"></script>
<script>
    Vue.http.options.emulateJSON = true;

</script>

    <script>
        new Vue({
            el: "#app"
        })
    </script>

</body>
</html>